package com.sell.mapper;

import com.sell.entity.Employees;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface EmployeesMapper {

    int deleteByPrimaryKey(Integer employeesid);

    int insert(Employees record);
    
    int insertSelective(Employees record);
    /**
     * 根据employeesid获取员工
     * @return
     */
    public Employees getEmpById(@Param("employeesId")Integer employeesId);
    
    /**
     * 获取所有员工
     * @return
     */
    List<Employees> getEmployees();

    int updateByPrimaryKeySelective(Employees record);

    int updateByPrimaryKey(Employees record);
    /**
     * 员工登录
     */
    public Employees login(@Param("concode")Integer concode,@Param("password")String password);
   
}